<%@page import="java.util.Date"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

	<!-- 本地化 -->
	<fmt:setLocale value="zh_cn"/>
	<fmt:formatNumber value="123456789.12" type="number" minFractionDigits="5">
	</fmt:formatNumber>  <br>
	<fmt:formatNumber value="123456789.123" type="currency" >
	</fmt:formatNumber>  <br>
	<fmt:formatNumber value="123456789.123" type="percent">
	</fmt:formatNumber>  <br>
	
	<%
		Date d = new Date();
		pageContext.setAttribute("date", d);
	%>
	<fmt:formatDate value="${date}" pattern="yyyy年MM月dd HH:mm:ss"/>
</body>
</html>